// 练习1：使用 fp.add(x, y) 和 fp.map(f, x) 创建一个能让 functor 里的值增加的函数 ex1

const fp = require('lodash/fp')
const { Maybe, Container } = require('./support')
let maybe = Maybe.of([5, 6, 1])
let ex1 = (arr) => {
    return fp.map(item => fp.add(item, 1), arr)
}

console.log(maybe.map(ex1))